<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-productname_id" data-rule="required" data-source="productname/index"  class="form-control selectpage"  name="row[productname_id]" type="text" value="{$row.productname_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]" type="text" value="{$row.code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Factory_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_id" data-rule="required" data-source="factory/index" class="form-control selectpage" data-field="title" name="row[factory_id]" type="text" value="{$row.factory_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产日期')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input class="form-control datetimepicker"
                   data-date-format="YYYY-MM-DD"
                   data-use-current="true"
                   id="c-producetime"
                   type="text"
                   name="row[producetime]"
                   placeholder="请选择时间"
                   value="{$row.producetime|htmlentities}"
            >

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品质保期(天)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warranty" data-rule="required" placeholder="请输入产品质保天数" class="form-control" name="row[warranty]" type="text" value="{$row.warranty|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
